package com.pro.mapper;

import com.pro.pojo.JsMicrocircle;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * ClassName:JsMicrocircleMapper
 * Package:com.pro.mapper
 * Description:
 *
 * @Date:2022/1/7 11:23
 * @Author: ZPT
 */
public interface JsMicrocircleMapper {
    /**
     * @author ZPT
     * @date 2022/2/8 14:56
     * @content :查询微圈数据
     */
    List<JsMicrocircle> getMicrocircleTable(@Param("acticleCategroyId") Integer acticleCategroyId, @Param("page") Integer page, @Param("limit") Integer limit, @Param("artcleTitle") String artcleTitle, @Param("nickname") String nickname, @Param("account") String account);

    /**
     * @author ZPT
     * @date 2022/1/7 14:46
     * @content :微圈的收藏量
     */
    int colCount(Integer microcircleId);

    /**
     * @author ZPT
     * @date 2022/1/8 11:53
     * @content :微圈的删除
     */
    Boolean deleteMicrocircle(Integer microcircleId);

    /**
     * @author ZPT
     * @date 2022/1/8 12:22
     * @content :根据id查询微圈数据
     */
    JsMicrocircle getMicrocircleById(Integer microcircleId);

    /**
     * @author ZPT
     * @date 2022/2/8 19:18
     * @content :微圈数量
     */
    Integer getCount(@Param("acticleCategroyId") Integer acticleCategroyId, @Param("artcleTitle") String artcleTitle, @Param("nickname") String nickname, @Param("account") String account);
}
